//
//  DashLineViewController.m
//  BM4GroupDemo
//
//  Created by apple on 16/2/17.
//  Copyright © 2016年 ZR. All rights reserved.
//

#import "DashLineViewController.h"
#import <BMDashLine.h>


@interface DashLineViewController ()

@end

@implementation DashLineViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    self.title = @"虚线界面";
// 画虚线view
    
    BMDashLine *dashline = [[BMDashLine alloc]initWithFrame:CGRectMake(10, 100, [UIScreen mainScreen].bounds.size.width - 10 * 2, 2)];
    
// 虚线颜色
    dashline.dashColor = [UIColor redColor];
    dashline.backgroundColor = [UIColor clearColor];
    self.view.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:dashline];
    
    
    BMDashLine *dashline2 = [[BMDashLine alloc]initWithFrame:CGRectMake(10, 100 + 2 + 20, [UIScreen mainScreen].bounds.size.width - 10 * 2, 2)];
    dashline2.dashColor = [UIColor blueColor];
    dashline2.backgroundColor = [UIColor clearColor];
    self.view.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:dashline2];
    
}


- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
    [self dismissViewControllerAnimated:YES completion:nil];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
